package com.gzh.demo.client;

import com.gzh.demo.pojo.User;
import org.springframework.stereotype.Component;


@Component //注入到容器
public class UserClientFallback implements UserClient {
    @Override
    public User queryById(int id) {
        User user = new User();
        user.setUsername("服务器忙请重试！");
        return user;
    }
}
